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:
Robbin Ehn 2018-04-18 09:25:51 +02:00
parent 2997d6f6f0
commit a0a4b1981b
7 changed files with 494 additions and 1 deletions

View file

@ -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);