hotspot/src/share/vm/compiler/disassembler.cpp
changeset 26432 9b974e2eae27
parent 25468 5331df506290
child 29081 c61eb4914428
child 28914 bee40a1e5cff
child 29180 50369728b00e
--- a/hotspot/src/share/vm/compiler/disassembler.cpp	Fri Aug 29 13:46:50 2014 +0000
+++ b/hotspot/src/share/vm/compiler/disassembler.cpp	Fri Aug 29 19:45:49 2014 -0400
@@ -246,12 +246,12 @@
 };
 
 decode_env::decode_env(CodeBlob* code, outputStream* output, CodeStrings c) {
-  memset(this, 0, sizeof(*this));
+  memset(this, 0, sizeof(*this)); // Beware, this zeroes bits of fields.
   _output = output ? output : tty;
   _code = code;
   if (code != NULL && code->is_nmethod())
     _nm = (nmethod*) code;
-  _strings.assign(c);
+  _strings.copy(c);
 
   // by default, output pc but not bytes:
   _print_pc       = true;