From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk1-xa35.google.com (mail-vk1-xa35.google.com [IPv6:2607:f8b0:4864:20::a35]) by sourceware.org (Postfix) with ESMTPS id 6A88B3858425 for ; Wed, 2 Nov 2022 08:10:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6A88B3858425 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-vk1-xa35.google.com with SMTP id e16so8553693vkm.9 for ; Wed, 02 Nov 2022 01:10:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=nlQxJerGVssoPji/7VVUuSFYD4gXkwCSx07Qjq2ut2Q=; b=P3KcBISIZE1XlhuvcQrJEE6JHN+YmLULZDyeUCMVjDJYzSsmzdwSUM9VGbU7U0JVAk ilC5x+9Was9/wkhYpjAKyNTYBaN920xrNntSuiss4ASrm7uQ9LSXPnePt3H2OhHuzNSf V7aKYy7mjBslpXn8x7dQdJW3XcFJxIGzjbxRzwOzAWB/SbxnZqqMU9Nlgs7hHc9xO2Y/ S5i8l5BYTNh6udY1IWyIajeDJtEkvCb2G6pqvpUvdnTHpyphLFTe9Lf/ixcdxAhQ1qrY NUHQ2lrQwUNo6sP/lyQa71WuZszB1yKLoglQ2FJ3q0LQ5oswoJuno2RM83B36U+wYnyI j3cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nlQxJerGVssoPji/7VVUuSFYD4gXkwCSx07Qjq2ut2Q=; b=mF83vtoLG6yWQZ7sXm+TZ++/ZktK5qGY2lXoabA2yBWGK1ZQ6kV4Hk27mCz94nC6wY kwKx7ptPluYEUw9bxcN/UFwxVF8r94GPXHFy/vbCisugl7tQj2frUP4Glb/fHLnoBgFL fPD29wh6bkmq7hgasfRVIM5Cx01fkRlHIZkJh/U1PwZd3fXvl5u7863iXFPaQaM0eG+0 tD8YbcCdZ+LO+9YCf8C9C0c9ncp1/kibV2olhMInygVTezBbOmWJmGYiBtqtRsOahwQ3 OAou3AhE1pbdXkma9eCWF6Dvs9KKly24c8XPszCJl41Xw7KgKb151eVQ1L9tOw37q0af PpbA== X-Gm-Message-State: ACrzQf0BoPFCN5h83GneZmJxse3sV3PMb3CRPqqnK29Q9Q7oTC5Ketu5 ZkXvPj/91MF7+X6YVsoT8CcUbly9EzZgK53A4V5MG4I8 X-Google-Smtp-Source: AMsMyM5LnJSidydJ3ywhRZCDjsz3spwKHOr4MiMArkBNhP5Bw2Uq5QtNAe5qQ0H0Zq65XEfh5suJuH69Sc/lj/ydY4s= X-Received: by 2002:a1f:410d:0:b0:3b4:19c7:b145 with SMTP id o13-20020a1f410d000000b003b419c7b145mr11256184vka.8.1667376635559; Wed, 02 Nov 2022 01:10:35 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Panicz Maciej Godek Date: Wed, 2 Nov 2022 09:10:24 +0100 Message-ID: Subject: Re: Environment initialization on Android To: Per Bothner Cc: kawa@sourceware.org Content-Type: multipart/alternative; boundary="00000000000011c64805ec7860b0" X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,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: --00000000000011c64805ec7860b0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks, so far I've figured out that some issues can be resolved by using define-early-constant wherever possible. pon., 31 pa=C5=BA 2022, 17:26 u=C5=BCytkownik Per Bothner = napisa=C5=82: > > > 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 wh= at > 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/ > --00000000000011c64805ec7860b0--