mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
7011386: race in objArrayKlass::array_klass_impl
Move _lower_dimension field initialization before _higher_dimension and add storestore barrier. Reviewed-by: dholmes, iveresov, never
This commit is contained in:
parent
6a80d2126c
commit
4912ef0e5d
4 changed files with 11 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2011, 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
|
||||
|
@ -219,8 +219,8 @@ static inline uint64_t cast_uint64_t(size_t x)
|
|||
volatile_nonstatic_field(oopDesc, _metadata._compressed_klass, narrowOop) \
|
||||
static_field(oopDesc, _bs, BarrierSet*) \
|
||||
nonstatic_field(arrayKlass, _dimension, int) \
|
||||
nonstatic_field(arrayKlass, _higher_dimension, klassOop) \
|
||||
nonstatic_field(arrayKlass, _lower_dimension, klassOop) \
|
||||
volatile_nonstatic_field(arrayKlass, _higher_dimension, klassOop) \
|
||||
volatile_nonstatic_field(arrayKlass, _lower_dimension, klassOop) \
|
||||
nonstatic_field(arrayKlass, _vtable_len, int) \
|
||||
nonstatic_field(arrayKlass, _alloc_size, juint) \
|
||||
nonstatic_field(arrayKlass, _component_mirror, oop) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue