diff -r 040293c73621 -r 120b61d50f85 src/hotspot/share/gc/shared/cardTableModRefBSForCTRS.cpp --- a/src/hotspot/share/gc/shared/cardTableModRefBSForCTRS.cpp Mon Feb 12 16:08:33 2018 -0800 +++ b/src/hotspot/share/gc/shared/cardTableModRefBSForCTRS.cpp Wed Jan 10 22:48:27 2018 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2018, 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 @@ -121,3 +121,6 @@ } } +bool CardTableModRefBSForCTRS::is_in_young(oop obj) const { + return GenCollectedHeap::heap()->is_in_young(obj); +}