File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
visualvm/libs.profiler/lib.profiler.heap/src/org/graalvm/visualvm/lib/jfluid/heap Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ void rewind() {
131
131
if (readStream != null ) {
132
132
readStream .close ();
133
133
}
134
- readStream = new DataInputStream (new BufferedInputStream (new FileInputStream (backingFile ), buffer .length * 8 ));
134
+ readStream = new DataInputStream (new BufferedInputStream (new FileInputStream (backingFile ), buffer .length * Long . BYTES ));
135
135
readStreamClosed = false ;
136
136
} catch (IOException ex ) {
137
137
ex .printStackTrace ();
@@ -151,7 +151,7 @@ void writeLong(long data) throws IOException {
151
151
}
152
152
153
153
if (writeStream == null ) {
154
- writeStream = new DataOutputStream (new BufferedOutputStream (new FileOutputStream (backingFile ), buffer .length * 8 ));
154
+ writeStream = new DataOutputStream (new BufferedOutputStream (new FileOutputStream (backingFile ), buffer .length * Long . BYTES ));
155
155
156
156
for (int i = 0 ; i < buffer .length ; i ++) {
157
157
writeStream .writeLong (buffer [i ]);
You can’t perform that action at this time.
0 commit comments