download zip of files only
Wed Feb 24 11:49:26 HKT 2021
From /weblog/java/string
String.intern() is designed for constant strings, it's implemented in C/C++ in the hotspot core code, and it has a fixed-size hashmap of around 20K entries and if more than this number of strings are interned, the performance degrades linearly since there are hash collisions and the code has to search down linked lists. http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6988220 String.intern in Java 7 and 8 - http://java-performance.info/string-intern-in-java-6-7-8/ http://java-performance.info[..]-intern-java-6-7-8-multithreaded-access/ http://java-performance.info/string-intern-java-7-8-part-3/ Suggestion of improving string decoding - https://cl4es.github.io/2021/02/23/Faster-Charset-Decoding.html
(google search)
(amazon search)
Sat Feb 13 22:24:00 HKT 2021
From /weblog/java/fundamental
In this post we will be looking at crash logs, the hs_err file, that is generated when the Java Virtual Machine crashes. Trying to find what is going wrong, and which component to blame, is important to understand how to interpret the crash log file. The focus will be on understanding the frames that make up the stack trace. - https://inside.java/2021/02/12/deciphering-the-stacktrace/
(google search)
(amazon search)
Wed Jan 06 20:49:46 HKT 2021
From /weblog/java/string
Java's String.repeat Method in Action: Building PreparedStatement with Dynamic Number of Parameters - https://marxsoftware.blogspot.com[..]k11-string-repeat-preparedstatement.html
(google search)
(amazon search)
Wed Dec 30 20:49:03 HKT 2020
From /weblog/java/concurrency
An API to get the state of a thread, but someone say it is not reliable - http://java.sun.com[..]5.0/docs/api/java/lang/Thread.State.html http://java.silke-wingens.de/2011/03/13/threads-states/?lang=en http://www.nabble.com[..]readed-programs-tf3627394.html#a10128844 Having said that, I have to note that using Thread#getState() is not something you can absolutely rely on as the behavior isn't guaranteed to be the same on all platforms. That is, it can be a useful tool for debugging and test-driving but not ideal for regression (unit) testing. Overview of Java thread - http://java67.blogspot.hk[..]t-thread-and-javalangthread-in-java.html Loom - https://webtide.com/do-looms-claims-stack-up-part-1/ https://webtide.com/do-looms-claims-stack-up-part-2/
(google search)
(amazon search)
Sat Oct 24 10:31:23 HKT 2020
From /weblog/java/tools
Generate a diff page forother toreview in HG - https://blogs.oracle.com/bondolo/entry/how_i_generate_a_webrev Introduce a tool to keep IDE code and webcontainer code in sync - http://techblog.bozho.net/?p=1246 Auto complete of IDEA is pretty cool - http://maciejwalkowiak.pl[..]aster-with-intellij-idea-live-templates/ use ctrl-w to select text - http://paulhammant.com[..]ins-ides-their-best-feature-is-control-w 7-new-tools-java-developers-should-know - http://blog.takipi.com/7-new-tools-java-developers-should-know/ Buggy App is a simple java application that simulates different performance problems like Memory Leak, OutOfMemoryError, CPU spike, thread leak, StackOverflowError, deadlock, unresponsiveness, … - https://blog.fastthread.io[..]buggy-app-simulate-performance-problems/
(google search)
(amazon search)
Thu Oct 08 08:22:27 HKT 2020
From /weblog/java/features
Invoking Assembly Language Programs using java native interface - http://today.java.net/lpt/a/330 Best practices for using the Java Native Interface - http://www.ibm.com/developerworks/java/library/j-jni/index.html Other library try to simple using native library - https://inside.java/2020/10/06/jextract/
(google search)
(amazon search)
|