mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-24 21:34:52 +02:00
8026977: NPG: Remove ConstantPool::lock
Write klass and resolved_references constant pool fields lock free. Reviewed-by: jrose, twisti
This commit is contained in:
parent
c1c9f333d5
commit
243d697d71
10 changed files with 127 additions and 180 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -95,6 +95,9 @@ private:
|
|||
oop_store(obj_at_addr<oop>(index), value);
|
||||
}
|
||||
}
|
||||
|
||||
oop atomic_compare_exchange_oop(int index, oop exchange_value, oop compare_value);
|
||||
|
||||
// Sizing
|
||||
static int header_size() { return arrayOopDesc::header_size(T_OBJECT); }
|
||||
int object_size() { return object_size(length()); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue