changeset 254:ddc484c7916a

8137196: openpc1/index.html#GPortTests ALWAYS (100% reproducible) results in core dump Summary: FakeHandle doesn't override default close() method Reviewed-by: alkonsta
author snazarki
date Mon, 28 Sep 2015 19:35:24 +0300
parents 76a790a79cd3
children 11ac31a1dc0c
files src/se/classes/com/oracle/dio/impl/FakeHandle.java
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/se/classes/com/oracle/dio/impl/FakeHandle.java	Thu Sep 24 19:32:24 2015 +0400
+++ b/src/se/classes/com/oracle/dio/impl/FakeHandle.java	Mon Sep 28 19:35:24 2015 +0300
@@ -24,6 +24,8 @@
  */
 package com.oracle.dio.impl;
 
+import com.oracle.dio.utils.Constants;
+
 /**
  * Pure Java device handle.
  */
@@ -33,6 +35,11 @@
     private FakeHandle() {
     }
 
+    @Override
+    public void close() {
+        device_reference = Constants.INVALID_HANDLE;
+    }
+
     public static synchronized FakeHandle getFakeHandle() {
         FakeHandle h = new FakeHandle();
         h.device_reference = counter++;