You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fory.apache.org by ch...@apache.org on 2025/11/01 13:57:55 UTC

(fory) branch main updated: fix(java): setting the ForyJitCompilerThreadFactory to produce daemon threads (#2869)

This is an automated email from the ASF dual-hosted git repository.

chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fory.git


The following commit(s) were added to refs/heads/main by this push:
     new 46be0c408 fix(java): setting the ForyJitCompilerThreadFactory to produce daemon threads (#2869)
46be0c408 is described below

commit 46be0c408462c6ccca42cb7b6bbe606585f8778b
Author: coderunner234 <50...@users.noreply.github.com>
AuthorDate: Sat Nov 1 19:27:51 2025 +0530

    fix(java): setting the ForyJitCompilerThreadFactory to produce daemon threads (#2869)
    
    <!--
    **Thanks for contributing to Apache Fory™.**
    
    **If this is your first time opening a PR on fory, you can refer to
    [CONTRIBUTING.md](https://github.com/apache/fory/blob/main/CONTRIBUTING.md).**
    
    Contribution Checklist
    
    - The **Apache Fory™** community has requirements on the naming of pr
    titles. You can also find instructions in
    [CONTRIBUTING.md](https://github.com/apache/fory/blob/main/CONTRIBUTING.md).
    
    - Apache Fory™ has a strong focus on performance. If the PR you submit
    will have an impact on performance, please benchmark it first and
    provide the benchmark result here.
    -->
    
    ## Why?
    
    <!-- Describe the purpose of this PR. -->
    
    ## What does this PR do?
    
    <!-- Describe the details of this PR. -->
    
    ## Related issues
    
    <!--
    Is there any related issue? If this PR closes them you say say
    fix/closes:
    
    - #xxxx0
    - #xxxx1
    - Fixes #xxxx2
    -->
    
    ## Does this PR introduce any user-facing change?
    
    <!--
    If any user-facing interface changes, please [open an
    issue](https://github.com/apache/fory/issues/new/choose) describing the
    need to do so and update the document if necessary.
    
    Delete section if not applicable.
    -->
    
    - [ ] Does this PR introduce any public API change?
    - [ ] Does this PR introduce any binary protocol compatibility change?
    
    ## Benchmark
    
    <!--
    When the PR has an impact on performance (if you don't know whether the
    PR will have an impact on performance, you can submit the PR first, and
    if it will have impact on performance, the code reviewer will explain
    it), be sure to attach a benchmark data here.
    
    Delete section if not applicable.
    -->
    
    Co-authored-by: Krishnakumar Thakur <kr...@moneyview.in>
---
 .../org/apache/fory/util/concurrency/ForyJitCompilerThreadFactory.java   | 1 +
 1 file changed, 1 insertion(+)

diff --git a/java/fory-core/src/main/java/org/apache/fory/util/concurrency/ForyJitCompilerThreadFactory.java b/java/fory-core/src/main/java/org/apache/fory/util/concurrency/ForyJitCompilerThreadFactory.java
index 65456fa2b..72cf564ef 100644
--- a/java/fory-core/src/main/java/org/apache/fory/util/concurrency/ForyJitCompilerThreadFactory.java
+++ b/java/fory-core/src/main/java/org/apache/fory/util/concurrency/ForyJitCompilerThreadFactory.java
@@ -31,6 +31,7 @@ public class ForyJitCompilerThreadFactory implements ThreadFactory {
   public Thread newThread(Runnable task) {
     Thread thread = backingThreadFactory.newThread(task);
     thread.setName("fory-jit-compiler-" + threadNumber.incrementAndGet());
+    thread.setDaemon(true);
     return thread;
   }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fory.apache.org
For additional commands, e-mail: commits-help@fory.apache.org