--- old/src/hotspot/share/oops/instanceMirrorKlass.cpp 2020-01-21 14:54:35.133239688 -0800 +++ new/src/hotspot/share/oops/instanceMirrorKlass.cpp 2020-01-21 14:54:34.797233098 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 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 @@ -66,3 +66,9 @@ } return 0; } + +#if INCLUDE_CDS +void InstanceMirrorKlass::serialize_offsets(SerializeClosure* f) { + f->do_u4((u4*)&_offset_of_static_fields); +} +#endif