Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion suggester/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<dependency>
<groupId>net.openhft</groupId>
<artifactId>chronicle-map</artifactId>
<version>3.17.1</version>
<version>3.17.4</version>
<exclusions>
<exclusion>
<groupId>com.sun.java</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

/*
* Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2019 Oracle and/or its affiliates. All rights reserved.
*/
package org.opengrok.suggest.popular.impl.chronicle;

Expand Down Expand Up @@ -50,10 +50,9 @@ public BytesRefDataAccess() {
}

private void initTransients() {
bs = HeapBytesStore.uninitialized();
bs = null;
}


@Override
public RandomDataInput bytes() {
return bs;
Expand Down Expand Up @@ -95,14 +94,14 @@ public Data<BytesRef> getData(@NotNull BytesRef instance) {
array = new byte[instance.length];
System.arraycopy(instance.bytes, instance.offset, array, 0, instance.length);
}
bs.init(array);
bs = HeapBytesStore.wrap(array);
return this;
}

@Override
public void uninit() {
array = null;
bs.uninit();
bs = null;
}

@Override
Expand Down