Skip to content

Conversation

@rpuch
Copy link
Contributor

@rpuch rpuch commented Oct 26, 2021

Unsafe class is deprecated and not recommended for usage anymore. IgniteSpinReadWriteLock might be switched to VarHandle that theoretically provides same runtime performance, and it's the recommended method to do CAS operations.

Also, tests are added and the lock class code is refactored.

@rpuch rpuch force-pushed the IGNITE-15536 branch 2 times, most recently from 9ffda81 to b0a36d2 Compare October 27, 2021 06:39
Unsafe class is deprecated and not recommended for usage anymore. IgniteSpinReadWriteLock might be switched to VarHandle that theoretically provides same runtime performance, and it's the recommended method to do CAS operations.

Also, tests are added and the lock class code is refactored.

Co-authored-by: Alexander Polovtcev <alex.polovtcev@gmail.com>
rpuch and others added 2 commits October 28, 2021 15:13
…iteSpinReadWriteLockTest.java

Co-authored-by: Alexander Polovtcev <alex.polovtcev@gmail.com>
@rpuch
Copy link
Contributor Author

rpuch commented Oct 28, 2021

Thanks for the review!

@ibessonov ibessonov merged commit 0c4ec19 into apache:main Oct 28, 2021
@ibessonov ibessonov deleted the IGNITE-15536 branch October 28, 2021 12:27
ygerzhedovich pushed a commit that referenced this pull request Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants