Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 286510 Details for
Bug 572512
Memory mapped files for parsing storage (proposal for comment)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
4_introduce_basic_heap_backed_arrays.patch
file_572512.txt (text/plain), 2.32 KB, created by
Jason Koch
on 2021-06-02 13:21:25 EDT
(
hide
)
Description:
4_introduce_basic_heap_backed_arrays.patch
Filename:
MIME Type:
Creator:
Jason Koch
Created:
2021-06-02 13:21:25 EDT
Size:
2.32 KB
patch
obsolete
>From 63aa0de654fb704b375f74d7b1cb3da56d122658 Mon Sep 17 00:00:00 2001 >From: Jason Koch <jkoch@netflix.com> >Date: Fri, 30 Apr 2021 14:51:47 -0700 >Subject: [PATCH] (interim) dominatortree to use memory mapped region > >Change-Id: Idefec4240f695aca191dfc62c1029b0e40c2d8d1 >--- > .../mat/parser/index/HeapIntArray.java | 25 +++++++++++++++++++ > .../mat/parser/index/HeapLongArray.java | 25 +++++++++++++++++++ > 2 files changed, 50 insertions(+) > create mode 100644 plugins/org.eclipse.mat.parser/src/org/eclipse/mat/parser/index/HeapIntArray.java > create mode 100644 plugins/org.eclipse.mat.parser/src/org/eclipse/mat/parser/index/HeapLongArray.java > >diff --git a/plugins/org.eclipse.mat.parser/src/org/eclipse/mat/parser/index/HeapIntArray.java b/plugins/org.eclipse.mat.parser/src/org/eclipse/mat/parser/index/HeapIntArray.java >new file mode 100644 >index 00000000..2d35b987 >--- /dev/null >+++ b/plugins/org.eclipse.mat.parser/src/org/eclipse/mat/parser/index/HeapIntArray.java >@@ -0,0 +1,25 @@ >+package org.eclipse.mat.parser.index; >+ >+public class HeapIntArray implements IntArray >+{ >+ final int[] array; >+ public HeapIntArray(int size) >+ { >+ this.array = new int[size]; >+ } >+ >+ public int get(int index) >+ { >+ return array[index]; >+ } >+ >+ public void set(int index, int value) >+ { >+ array[index] = value; >+ } >+ >+ public int size() >+ { >+ return array.length; >+ } >+} >\ No newline at end of file >diff --git a/plugins/org.eclipse.mat.parser/src/org/eclipse/mat/parser/index/HeapLongArray.java b/plugins/org.eclipse.mat.parser/src/org/eclipse/mat/parser/index/HeapLongArray.java >new file mode 100644 >index 00000000..2227f2c7 >--- /dev/null >+++ b/plugins/org.eclipse.mat.parser/src/org/eclipse/mat/parser/index/HeapLongArray.java >@@ -0,0 +1,25 @@ >+package org.eclipse.mat.parser.index; >+ >+public class HeapLongArray implements LongArray >+{ >+ final long[] array; >+ public HeapLongArray(int size) >+ { >+ this.array = new long[size]; >+ } >+ >+ public long get(int index) >+ { >+ return array[index]; >+ } >+ >+ public void set(int index, long value) >+ { >+ array[index] = value; >+ } >+ >+ public int size() >+ { >+ return array.length; >+ } >+} >\ No newline at end of file >-- >2.27.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 572512
:
286016
|
286362
|
286363
|
286508
|
286509
| 286510