src/share/vm/memory/guardedMemory.hpp

Print this page
rev 6562 : 8043224: -Xcheck:jni improvements to exception checking and excessive local refs
Summary: Warning when not checking exceptions from function that require so, also when local refs expand beyond capacity.
Reviewed-by: zgu, coleenp, hseigel

@@ -233,21 +233,21 @@
    * Return the size of the user data.
    *
    * @return the size of the user data.
    */
   size_t get_user_size() const {
-    assert(_base_addr, "Not wrapping any memory");
+    assert(_base_addr != NULL, "Not wrapping any memory");
     return get_head_guard()->get_user_size();
   }
 
   /**
    * Return the user data pointer.
    *
    * @return the user data pointer.
    */
   u_char* get_user_ptr() const {
-    assert(_base_addr, "Not wrapping any memory");
+    assert(_base_addr != NULL, "Not wrapping any memory");
     return _base_addr + sizeof(GuardHeader);
   }
 
   /**
    * Release the wrapped pointer for resource freeing.

@@ -279,11 +279,11 @@
   Guard*        get_tail_guard() const { return (Guard*) (get_user_ptr() + get_user_size()); };
   void set_user_bytes(u_char ch) {
     memset(get_user_ptr(), ch, get_user_size());
   }
 
-public:
+ public:
   /**
    * Return the total size required for wrapping the given user size.
    *
    * @return the total size required for wrapping the given user size.
    */