Issue2452
Created on 2016年01月09日.04:50:00 by darjus, last changed 2016年01月10日.07:37:22 by darjus.
| Messages | |||
|---|---|---|---|
| msg10610 (view) | Author: Darjus Loktevic (darjus) | Date: 2016年01月09日.04:49:59 | |
I've been playing with some multithreaded code and noticed that it wasn't scaling well at all with many java object access when more threads were added (4 threads enough). After checking with visualvm thread dump it seems that threads were being locked quite often on JyAttribute hasAttr and getAttr. |
|||
| msg10611 (view) | Author: Darjus Loktevic (darjus) | Date: 2016年01月09日.04:51:06 | |
After checking with Stefan, it seems the problem is that both getAttr and setAttr are "static synchronized", which essentially creates a global lock. |
|||
| msg10612 (view) | Author: Darjus Loktevic (darjus) | Date: 2016年01月10日.07:37:22 | |
https://github.com/jythontools/jython/commit/645cd9e51c950bee3e3ab5cdb1ae9bb38889c94b |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2016年01月10日 07:37:22 | darjus | set | status: open -> closed resolution: accepted messages: + msg10612 milestone: Jython 2.7.1 |
| 2016年01月09日 12:24:31 | darjus | set | nosy: + stefan.richthofer |
| 2016年01月09日 04:51:06 | darjus | set | messages: + msg10611 |
| 2016年01月09日 04:50:00 | darjus | create | |
Supported by Python Software Foundation,
Powered by Roundup