hotspot/src/share/vm/classfile/classLoaderData.inline.hpp
changeset 35498 392b50de06c6
parent 22234 da823d78ad65
child 38146 1fa5504cd68d
--- a/hotspot/src/share/vm/classfile/classLoaderData.inline.hpp	Tue Jan 12 21:17:13 2016 +0400
+++ b/hotspot/src/share/vm/classfile/classLoaderData.inline.hpp	Mon Jan 04 15:41:05 2016 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 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
@@ -24,6 +24,11 @@
 
 #include "classfile/classLoaderData.hpp"
 #include "classfile/javaClasses.hpp"
+#include "oops/oop.inline.hpp"
+
+unsigned int ClassLoaderData::identity_hash() const {
+  return _class_loader == NULL ? 0 : _class_loader->identity_hash();
+}
 
 inline ClassLoaderData* ClassLoaderData::class_loader_data_or_null(oop loader) {
   if (loader == NULL) {