mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8195099: Concurrent safe-memory-reclamation mechanism
This implement a globalcounter with RCU semantics. Reviewed-by: acorn, coleenp, dcubed, eosterlund, gziemski, mlarsson, kbarrett, dholmes
This commit is contained in:
parent
2997d6f6f0
commit
a0a4b1981b
7 changed files with 494 additions and 1 deletions
|
@ -246,6 +246,7 @@ Thread::Thread() {
|
|||
_threads_hazard_ptr = NULL;
|
||||
_nested_threads_hazard_ptr = NULL;
|
||||
_nested_threads_hazard_ptr_cnt = 0;
|
||||
_rcu_counter = 0;
|
||||
|
||||
// the handle mark links itself to last_handle_mark
|
||||
new HandleMark(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue