Mercurial > hg > icedtea8-forest > hotspot
changeset 10613:bb1da64b0492
8229345: Memory leak due to vtable stubs not being shared on SPARC
Reviewed-by: mdoerr, dholmes, kvn
author | eosterlund |
---|---|
date | Fri, 16 Aug 2019 16:50:17 +0200 |
parents | b00c93a7805c |
children | 39b41ab3366c |
files | src/cpu/ppc/vm/globals_ppc.hpp src/cpu/sparc/vm/globals_sparc.hpp src/cpu/x86/vm/globals_x86.hpp src/cpu/zero/vm/globals_zero.hpp src/share/vm/code/vtableStubs.cpp src/share/vm/runtime/globals.hpp |
diffstat | 6 files changed, 7 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cpu/ppc/vm/globals_ppc.hpp Wed Feb 20 08:31:40 2019 -0500 +++ b/src/cpu/ppc/vm/globals_ppc.hpp Fri Aug 16 16:50:17 2019 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved. * Copyright 2012, 2018 SAP AG. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * @@ -33,10 +33,8 @@ // (see globals.hpp) define_pd_global(bool, ConvertSleepToYield, true); -define_pd_global(bool, ShareVtableStubs, false); // Improves performance markedly for mtrt and compress. define_pd_global(bool, NeedsDeoptSuspend, false); // Only register window machines need this. - define_pd_global(bool, ImplicitNullChecks, true); // Generate code for implicit null checks. define_pd_global(bool, TrapBasedNullChecks, true); define_pd_global(bool, UncommonNullCast, true); // Uncommon-trap NULLs passed to check cast.
--- a/src/cpu/sparc/vm/globals_sparc.hpp Wed Feb 20 08:31:40 2019 -0500 +++ b/src/cpu/sparc/vm/globals_sparc.hpp Fri Aug 16 16:50:17 2019 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2019, 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 @@ -38,7 +38,6 @@ // according to the prior table. So, we let the thread continue and let it block by itself. define_pd_global(bool, DontYieldALot, true); // yield no more than 100 times per second define_pd_global(bool, ConvertSleepToYield, false); // do not convert sleep(0) to yield. Helps GUI -define_pd_global(bool, ShareVtableStubs, false); // improves performance markedly for mtrt and compress define_pd_global(bool, CountInterpCalls, false); // not implemented in the interpreter define_pd_global(bool, NeedsDeoptSuspend, true); // register window machines need this
--- a/src/cpu/x86/vm/globals_x86.hpp Wed Feb 20 08:31:40 2019 -0500 +++ b/src/cpu/x86/vm/globals_x86.hpp Fri Aug 16 16:50:17 2019 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2019, 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 @@ -32,7 +32,6 @@ // (see globals.hpp) define_pd_global(bool, ConvertSleepToYield, true); -define_pd_global(bool, ShareVtableStubs, true); define_pd_global(bool, CountInterpCalls, true); define_pd_global(bool, NeedsDeoptSuspend, false); // only register window machines need this
--- a/src/cpu/zero/vm/globals_zero.hpp Wed Feb 20 08:31:40 2019 -0500 +++ b/src/cpu/zero/vm/globals_zero.hpp Fri Aug 16 16:50:17 2019 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. * Copyright 2007, 2008, 2009, 2010, 2011 Red Hat, Inc. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * @@ -33,7 +33,6 @@ // runtime system. See globals.hpp for details of what they do. define_pd_global(bool, ConvertSleepToYield, true); -define_pd_global(bool, ShareVtableStubs, true); define_pd_global(bool, CountInterpCalls, true); define_pd_global(bool, NeedsDeoptSuspend, false);
--- a/src/share/vm/code/vtableStubs.cpp Wed Feb 20 08:31:40 2019 -0500 +++ b/src/share/vm/code/vtableStubs.cpp Fri Aug 16 16:50:17 2019 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2019, 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 @@ -110,7 +110,7 @@ address VtableStubs::find_stub(bool is_vtable_stub, int vtable_index) { assert(vtable_index >= 0, "must be positive"); - VtableStub* s = ShareVtableStubs ? lookup(is_vtable_stub, vtable_index) : NULL; + VtableStub* s = lookup(is_vtable_stub, vtable_index); if (s == NULL) { if (is_vtable_stub) { s = create_vtable_stub(vtable_index);
--- a/src/share/vm/runtime/globals.hpp Wed Feb 20 08:31:40 2019 -0500 +++ b/src/share/vm/runtime/globals.hpp Fri Aug 16 16:50:17 2019 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2019, 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 @@ -1180,9 +1180,6 @@ product(bool, ReduceSignalUsage, false, \ "Reduce the use of OS signals in Java and/or the VM") \ \ - develop_pd(bool, ShareVtableStubs, \ - "Share vtable stubs (smaller code but worse branch prediction") \ - \ develop(bool, LoadLineNumberTables, true, \ "Tell whether the class file parser loads line number tables") \ \