Mercurial > hg > graal-jvmci-8
diff src/share/vm/gc_implementation/g1/dirtyCardQueue.cpp @ 24178:ab892d05b029
8161993: G1 crashes if active_processor_count changes during startup
Summary: Use the initial active processor count for memory initialization instead of the current active one.
Reviewed-by: dholmes, mgerdin
author | tschatzl |
---|---|
date | Thu, 15 Dec 2016 20:00:01 -0500 |
parents | 570cb6369f17 |
children |
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/g1/dirtyCardQueue.cpp Thu Dec 15 19:48:32 2016 -0500 +++ b/src/share/vm/gc_implementation/g1/dirtyCardQueue.cpp Thu Dec 15 20:00:01 2016 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2016, 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 @@ -80,7 +80,7 @@ // Determines how many mutator threads can process the buffers in parallel. uint DirtyCardQueueSet::num_par_ids() { - return (uint)os::processor_count(); + return (uint)os::initial_active_processor_count(); } void DirtyCardQueueSet::initialize(CardTableEntryClosure* cl, Monitor* cbl_mon, Mutex* fl_lock,