From user-return-31068-archive-asf-public=cust-asf.ponee.io@commons.apache.org Sat Jan 20 18:13:47 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 09AFF18066D for ; Sat, 20 Jan 2018 18:13:47 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id ED998160C38; Sat, 20 Jan 2018 17:13:46 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 40190160C36 for ; Sat, 20 Jan 2018 18:13:46 +0100 (CET) Received: (qmail 33766 invoked by uid 500); 20 Jan 2018 17:13:44 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 33755 invoked by uid 99); 20 Jan 2018 17:13:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Jan 2018 17:13:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 1811D1A0458 for ; Sat, 20 Jan 2018 17:13:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.283 X-Spam-Level: *** X-Spam-Status: No, score=3.283 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_BL=0.01, RCVD_IN_MSPIKE_L4=1.974, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id OVdCWnLv1bHQ for ; Sat, 20 Jan 2018 17:13:42 +0000 (UTC) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 8EBF15F5A4 for ; Sat, 20 Jan 2018 17:13:41 +0000 (UTC) X-Originating-IP: 209.85.213.173 Received: from mail-yb0-f173.google.com (mail-yb0-f173.google.com [209.85.213.173]) (Authenticated sender: gmail@vafer.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id E96FD41C086 for ; Sat, 20 Jan 2018 18:13:40 +0100 (CET) Received: by mail-yb0-f173.google.com with SMTP id t14so341430ybc.8 for ; Sat, 20 Jan 2018 09:13:40 -0800 (PST) X-Gm-Message-State: AKwxyteDWjL8GHsmzDGu4jcw8oq3VA5B6tYYzgtwc+1TEt6a07nxc9HN thHOzXTJ9ZQHIpdc8iOO02eZsiTxa3tJMnpdl7Q= X-Google-Smtp-Source: AH8x227KYq06b4lxeMfdCeRfKG5SOTMAbB4gCUtZ8QSNDS0xXGFxGjgvT81iRSg43I8P0xxBu9s5dkF1/GtJHjf47Bs= X-Received: by 10.37.88.137 with SMTP id m131mr2312434ybb.467.1516468419690; Sat, 20 Jan 2018 09:13:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.139.143 with HTTP; Sat, 20 Jan 2018 09:12:59 -0800 (PST) In-Reply-To: References: From: Torsten Curdt Date: Sat, 20 Jan 2018 18:12:59 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [javaflow] - how to use continuation in JNI boundary To: Commons Users List Content-Type: multipart/alternative; boundary="001a113fc5da7808e5056338519a" --001a113fc5da7808e5056338519a Content-Type: text/plain; charset="UTF-8" Hey Cristian, you have to think of javaflow continuations of having multiple ways of running through the "run" function with different entry and exit points. What should/will work is: run() { native_func(); Continuation.suspend(); native_func(); Continuation.suspend(); } I am not quite sure what you are trying to do with your setup. Why callbacks in a continuation world? Keep in mind that the native code is not instrumented. cheers, Torsten --001a113fc5da7808e5056338519a--