From 2b5522690722cb3b02a4b2aced6e4bd7b2f82dfe Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 26 Jan 2014 00:34:45 +0100 Subject: Build: Move gluegen config files into make/config (cleanup) --- make/config/joal-alextabstract-CustomJavaCode.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 make/config/joal-alextabstract-CustomJavaCode.java (limited to 'make/config/joal-alextabstract-CustomJavaCode.java') diff --git a/make/config/joal-alextabstract-CustomJavaCode.java b/make/config/joal-alextabstract-CustomJavaCode.java new file mode 100644 index 0000000..e467fc7 --- /dev/null +++ b/make/config/joal-alextabstract-CustomJavaCode.java @@ -0,0 +1,16 @@ +private static final ALExtProcAddressTable alExtProcAddressTable; + +static { + alExtProcAddressTable = AccessController.doPrivileged(new PrivilegedAction() { + public ALExtProcAddressTable run() { + final ALExtProcAddressTable alExtProcAddressTable = new ALExtProcAddressTable(); + if(null==alExtProcAddressTable) { + throw new RuntimeException("Couldn't instantiate ALExtProcAddressTable"); + } + alExtProcAddressTable.reset(ALImpl.alDynamicLookupHelper); + return alExtProcAddressTable; + } } ); +} + +public static ALExtProcAddressTable getALExtProcAddressTable() { return alExtProcAddressTable; } + -- cgit v1.2.3