8026977: NPG: Remove ConstantPool::lock

Write klass and resolved_references constant pool fields lock free.

Reviewed-by: jrose, twisti
This commit is contained in:
Coleen Phillimore 2014-06-19 11:16:10 -04:00
parent c1c9f333d5
commit 243d697d71
10 changed files with 127 additions and 180 deletions

View file

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