Single byte CAS

Erik Österlund erik.osterlund at lnu.se
Tue Sep 2 18:52:06 UTC 2014


Heya guys,

Any good reason why single byte CAS is emulated using a pointer word sized CAS in a loop even on platforms that support single word CAS natively (e.g. X86 using lock cmpxchgb)?

Thinking this could be useful for instance for manipulating card entries faster etc.

If anyone is interested in this (and there is no good reason not to do this) I could perhaps provide a patch that fixes it as I have already fixed it for my platform.

/Erik


More information about the hotspot-gc-dev mailing list