EHC ❯ Have SCHM.Segment avoid the mem indirection when accessing locks
-
Task
-
Status: Resolved
-
2 Major
-
Resolution: Fixed
-
-
-
alexsnaps
-
Reporter: alexsnaps
-
March 05, 2013
-
0
-
Watchers: 1
-
June 06, 2013
-
March 17, 2013
Description
Methods that do lock/unlock reference this.lock which could lead to false sharing… Should put them on the stack. Not saying the JIT doesn’t already fix most usages, but given the code, seems like a “small enough” optimization to do, which _might even_ help sometimes…
r7289 in ehcache-2.7.x branch