--- old/src/share/vm/gc/g1/heapRegionType.hpp 2016-10-25 16:20:58.643362806 -0400 +++ new/src/share/vm/gc/g1/heapRegionType.hpp 2016-10-25 16:20:58.559358516 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 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 @@ -120,6 +120,8 @@ // is_old regions may or may not also be pinned bool is_old() const { return (get() & OldMask) != 0; } + bool is_old_or_humongous() const { return (get() & (OldMask | HumongousMask)) != 0; } + // is_pinned regions may be archive or humongous bool is_pinned() const { return (get() & PinnedMask) != 0; }