Fix for HotSpot deep stack problem

Related tags

Hook HotFix
Overview

Fix for HotSpot deep stack problem

Java HotSpot C2 compiler has a problem with deeply recursive functions. For a discussion of the problem see https://codeforces.com/blog/entry/67341

This discussion mention a workaround using -XX:TieredStopAtLevel=1 option to use only C1 compiler. However, this option significantly slows down computational code, because C1 compiler is much worse at optimizing code than C2 compiler.

This project introduces a workaround that works with HotSpot C2 compiler.

Step 1. Compiled classes need to be preprocessed with this HotFix tool.

java -jar HotFix-1.0.jar <classes-directory> <main-class-name> [-q]

The -q option is to make it quiet, without writing anything to the console.

Step 2. Run the resulting code with -XX:-UseInterpreter option.

java -XX:-UseInterpreter -cp <classes-directory> <main-class-name>
You might also like...
A programming problem solution

SqRtOfProductTree A programming problem solution Problem The blocks in the diagram below are arranged so that the value in each block is the square ro

Application to solve a personal problem, which was the wish to have a simple app that handles a market list with prices, quantity and total price
Application to solve a personal problem, which was the wish to have a simple app that handles a market list with prices, quantity and total price

Market List Application that handles a market list offline in device's storage system. The list can be just pasted in a big edit text field and the ap

Reproducer for a cacheability problem in the cacheable ShadowJar task

ShadowJar task cacheability reproducer Reproducer for a cacheability problem in the cacheable ShadowJar task, in which the task is considered up-to-da

BOJ PS - Solution of BOJ Problem
BOJ PS - Solution of BOJ Problem

BOJ_1009 분산처리 https://www.acmicpc.net/problem/1009 10개의 컴퓨터 그리고 N개의 데이터가 있을 경우 1

A non-linear problem solver using automatic differentiation and penalty methods.

HelixOptimizer Join the discord and contribute! https://discord.gg/kqe74EER A non-linear problem solver using automatic differentiation and penalty me

Medich is an application that raises the problem of satisfaction related to BPJS, especially in the lower classes, with Medich being able to solve all these problems
Medich is an application that raises the problem of satisfaction related to BPJS, especially in the lower classes, with Medich being able to solve all these problems

Medich is an application that raises the problem of satisfaction related to BPJS, especially in the lower classes, with Medich being able to solve all these problems. Medich has a Donation feature that will be very useful for the Community

On-device wake word detection powered by deep learning.
On-device wake word detection powered by deep learning.

Porcupine Made in Vancouver, Canada by Picovoice Porcupine is a highly-accurate and lightweight wake word engine. It enables building always-listening

Android library (AAR). Highly configurable, easily extendable deep zoom view for displaying huge images without loss of detail. Perfect for photo galleries, maps, building plans etc.
Android library (AAR). Highly configurable, easily extendable deep zoom view for displaying huge images without loss of detail. Perfect for photo galleries, maps, building plans etc.

Subsampling Scale Image View A custom image view for Android, designed for photo galleries and displaying huge images (e.g. maps and building plans) w

Slinger - deep linking library for Android
Slinger - deep linking library for Android

Slinger - deep linking library for Android Slinger is a small Android library for handling custom Uri which uses regular expression to catch and route

Linkester is an Android library that aims to help Android developers test their deep links implementation.
Linkester is an Android library that aims to help Android developers test their deep links implementation.

Linkester Linkester is an Android library that aims to help Android developers test their deep links implementation. The idea is to have a new launche

Opencv Android SDK application for Deep Neural Networks to run on Android.

This application allows you to deploy deep nets in Android environment using OpenCV Android SDK. With OpenCV, images are taken from the camera on your phone, and then these images are passed through the neural network and visualized on the front side. In this application, we will search for faces in the images taken and draw the found faces on the screen.

A lightweight and simple Kotlin library for deep link handling on Android 🔗.

A lightweight and simple Kotlin library for deep link handling on Android 🔗.

An educational android app that provides services like notes, online videos and visualization calculator to learn and understand deep concepts of DSA.
An educational android app that provides services like notes, online videos and visualization calculator to learn and understand deep concepts of DSA.

Aldo ALDO is a free education app for the young programmers who are desiring to master the concepts of Data Structure and Algorithms. ALDO offers prac

A deep learning based mobile application for the multi-class classification of pneumonia into three categories via Chest X-rays

PneumoniaClassifier A deep learning based mobile application for the multi-class classification of pneumonia into three categories via Chest X-rays. W

On-device wake word detection powered by deep learning.

Porcupine Made in Vancouver, Canada by Picovoice Porcupine is a highly-accurate and lightweight wake word engine. It enables building always-listening

Deep AR android APP (Augmented reality) with face recognition and filters

quickstart-android-java To run the example Go to https://developer.deepar.ai, sign up, create the project and the Android app, copy the license key an

Not so deep text reader inspired by BORIS, written in Kotlin

Barnable Reader Prototype Deep text reader library that generates a semantic model from a short input text. At the moment it is very primitive and is

Astronomy Deep Sky Target Finder App for android.
Astronomy Deep Sky Target Finder App for android.

Algorithums and Astronomy Calculator App This is the android app for the algorithm running at athesto.ddns.net the repository for which is at: Algorit

This document will walk you through the steps for creating your Android app that runs a deep learning image classification model trained in Pocket AutoML and exported in TensorFlow Lite format
This document will walk you through the steps for creating your Android app that runs a deep learning image classification model trained in Pocket AutoML and exported in TensorFlow Lite format

Pocket AutoML: Tutorial for Creating an Android App for Image Classification with Deep Learning Translations English (this document) Русский Overview

Releases(1.0)
Owner
Roman Elizarov
Software development expert, sports programming, ICPC
Roman Elizarov
AndFix is a library that offer hot-fix for Android App.

AndFix AndFix is a solution to fix the bugs online instead of redistributing Android App. It is distributed as Android Library. Andfix is an acronym f

Alibaba 6.9k Dec 29, 2022
Tinker is a hot-fix solution library for Android, it supports dex, library and resources update without reinstall apk.

Tinker Tinker is a hot-fix solution library for Android, it supports dex, library and resources update without reinstalling apk. Getting started Add t

Tencent 16.6k Dec 29, 2022
AndFix is a library that offer hot-fix for Android App.

AndFix AndFix is a solution to fix the bugs online instead of redistributing Android App. It is distributed as Android Library. Andfix is an acronym f

Alibaba 6.9k Dec 29, 2022
Reproducible sample with Fix for Memory Leak in RecyclerView Adapter

Memory Leak RecyclerView Adapter Reproducible Sample with Fix Video Instructions: https://www.youtube.com/c/awesomedevnotes Code Only the relevant and

Awesome Dev Notes | Android Dev Notes YouTube 7 Jun 7, 2022
A solution to fix obfuscated Java services after ProGuard has run

ProGuard Service Mapper This is a service mapper for the ProGuard Java bytecode

Marvin 1 Jan 10, 2022
MIUINativeNotifyIcon - Fix the native notification bar icon function abandoned by the MIUI development team

MIUI 原生通知图标 Fix the native notification bar icon function abandoned by the MIUI

Fankesyooni 189 Jan 4, 2023
ImmutablePendingIntent provides mutability safe methods and quick fix

ImmutablePendingIntent Overview ImmutablePendingIntent provides methods that create immutability-safe PendingIntent lint to make an error when using m

wada811 5 Nov 25, 2022
Way to set heartbeat interval and the User receive PushNotifications from GCM. Based on related post in Google Forums about HeartBeat problem.

AndroidHeartBeatFixer Way to set heartbeat interval and the User receive PushNotifications from GCM. Based on a Google Forums post about HeartBeat pro

João Pedro Nardari dos Santos 58 Jun 15, 2021
Expand your view with no problem ;)

MaryPopup Expand your view with no problem ;) Usage Open marypopup from a view MaryPopup marypopup = MaryPopup.with(context) .

Meetic 925 Nov 29, 2022
Native solution for common React Native problem of focused views being covered by soft input view.

react-native-avoid-softinput Native solution for common React Native problem of focused views being covered by soft input view. It is solved by listen

Mateusz Mędrek 312 Jan 2, 2023