From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailtransmit05.runbox.com (mailtransmit05.runbox.com [IPv6:2a0c:5a00:149::26]) by sourceware.org (Postfix) with ESMTPS id B7C2E385559E for ; Mon, 31 Oct 2022 16:26:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B7C2E385559E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=bothner.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bothner.com Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1opXc1-00BZor-DK for kawa@sourceware.org; Mon, 31 Oct 2022 17:26:09 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bothner.com ; s=selector1; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID; bh=44jUpHskQQ6mKCU6SZ9pSJnv/MviTCP0YjrCcqJbTVc=; b=BfQGx724SwP/21X3RPJEfhgrQR gukRQ02gMRpT5I/Oyooid4S5hNWz6yJNYS34eJ68jiooArUvNl9XwLdAO5Iz68/plJhM2+C5acesT 4yTB+99s6TsRLvyitO8mqDP8MnEQPoicm4PAMQAPj4b1QdODqXpc2iXmHWt7UXQtg8duTUhPzXEkF 8lxz4g5Jbjywu6WOoTJzdeH/XPa1rQHe28col8gbDeUELj4qrQH9CViegVYI6zWSWMI7CXnf/gk/V 1BEABxSFEyC1tCUgrzpFScrMlWq3zU5pxAlDq0VS6JLvFJ3sF7BOmxWvXAcJOHFEvWZv524MsuyWq oL27Ir1Q==; Received: from [10.9.9.74] (helo=submission03.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1opXc0-0001jn-Pv; Mon, 31 Oct 2022 17:26:08 +0100 Received: by submission03.runbox with esmtpsa [Authenticated ID (524175)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1opXbw-0007S5-Sc; Mon, 31 Oct 2022 17:26:05 +0100 Message-ID: Date: Mon, 31 Oct 2022 09:25:59 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: Environment initialization on Android Content-Language: en-US To: Panicz Maciej Godek , kawa@sourceware.org References: From: Per Bothner In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 10/31/22 03:51, Panicz Maciej Godek via Kawa wrote: > when I make a "global definition" (in the module containing the definition > of Android's activity), then the object bound to a given name is a null - > if it's a 'compound object' (like StringBuilder or parameter object, or an > object created by define-simple-class). But there are some exceptions: if I > use objects such as an integer number or a string, then dereferencing them > yields the right values. Literal and static values can be evaluated and initialized in multiple locations: the class initialize; and object initialized; the "run" method. Where things are initialized may depend on compiler flags (such as --module-static) and what kind of object is being initialized. I don't remember exactly what happens when; it has changed over the years. So it is possible the Android environment may cause some step in the initialization to be skipped or things to be done in the wrong order. -- --Per Bothner per@bothner.com http://per.bothner.com/